<%@ page language="java" contentType="text/html; charset=UTF-8" isELIgnored="false" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>详细信息展示</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/bootstrap/css/bootstrap.css"
          media="all">
    <script type="text/javascript" src="${pageContext.request.contextPath}/common/bootstrap/js/jquery.min.js"></script>
    <script src="${pageContext.request.contextPath}/common/bootstrap/js/bootstrap.min.js"></script>
    <%--页面调用数据--%>
    <link href="../../pageCss/ClinicalDataQuerySystem/addNewQuery.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container">
    <%--选项卡--%>
    <ul id="myTab" class="col-sm-12 nav nav-tabs">
        <li class="col-sm-4 nav1 active" id="application_information">
            <a href="#home" data-toggle="tab">
                <span class="nav2">1</span>申请信息
            </a>
        </li>
        <li class="col-sm-4 nav1" id="results_the_item">
            <a href="#jmeter" data-toggle="tab">
                <span class="nav2">3</span>结果项
            </a>
        </li>
    </ul>
    <div id="myTabContent" class="tab-content">
        <c:set value="${clinicalDataQuery}" var="CDQ"/>
        <div class="tab-pane fade in active" id="home">
            <form action="" id="form_personal" class="form-horizontal">
                <div class="form-group col-sm-12" style="margin-top: 50px;">
                    <div class="col-sm-2"></div>
                    <div class="col-sm-8" style="height: 500px; overflow:scroll; border: 1px solid #B9B9B9;">
                        <table class="table" style="width: 600px; margin: 0 auto;" border="1">
                            <thead>
                            <tr class="btn-info" align="center">
                                <td width="25%">名称</td>
                                <td width="75%">数据</td>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <td align="right">条件名称</td>
                                <td>${CDQ.queryConditions}</td>
                            </tr>
                            <tr>
                                <td align="right">联系方式</td>
                                <td>${CDQ.contact}</td>
                            </tr>
                            <tr>
                                <td align="right">申请科室</td>
                                <c:forEach items="${departmentList}" var="dep">
                                    <c:if test="${ dep.departmentId == CDQ.subordinateDepartments }">
                                        <td>${dep.departmentName}</td>
                                    </c:if>
                                </c:forEach>
                            </tr>
                            <tr>
                                <td align="right">使用目的</td>
                                <c:choose>
                                    <c:when test="${CDQ.purposeState ==1 }">
                                        <td>医务</td>
                                    </c:when>
                                    <c:when test="${CDQ.purposeState ==2 }">
                                        <td>科研</td>
                                    </c:when>
                                    <c:otherwise>
                                        <td></td>
                                    </c:otherwise>
                                </c:choose>
                            </tr>
                            <tr>
                                <td align="right">权限/敏感</td>
                                <c:choose>
                                    <c:when test="${CDQ.medicalReview ==1 }">
                                        <td>权限范围内且无敏感项</td>
                                    </c:when>
                                    <c:when test="${CDQ.medicalReview ==2 }">
                                        <td>超权限或存在敏感项</td>
                                    </c:when>
                                    <c:otherwise>
                                        <td></td>
                                    </c:otherwise>
                                </c:choose>
                            </tr>
                            <tr>
                                <td align="right">已备案?</td>
                                <c:choose>
                                    <c:when test="${CDQ.record ==1 }">
                                        <td>是</td>
                                    </c:when>
                                    <c:when test="${CDQ.record ==2 }">
                                        <td>否</td>
                                    </c:when>
                                    <c:otherwise>
                                        <td></td>
                                    </c:otherwise>
                                </c:choose>
                            </tr>
                            <tr>
                                <td align="right">科研敏感</td>
                                <c:choose>
                                    <c:when test="${CDQ.scientificResearchSensitive ==1 }">
                                        <td>是</td>
                                    </c:when>
                                    <c:when test="${CDQ.scientificResearchSensitive ==2 }">
                                        <td>否</td>
                                    </c:when>
                                    <c:otherwise>
                                        <td></td>
                                    </c:otherwise>
                                </c:choose>
                            </tr>
                            <tr>
                                <td align="right">含药品/耗材？</td>
                                <c:choose>
                                    <c:when test="${CDQ.medicines ==1 }">
                                        <td>是</td>
                                    </c:when>
                                    <c:when test="${CDQ.medicines ==2 }">
                                        <td>否</td>
                                    </c:when>
                                    <c:otherwise>
                                        <td></td>
                                    </c:otherwise>
                                </c:choose>
                            </tr>
                            <tr>
                                <td align="right">随访组</td>
                                <c:forEach items="${grouptableList}" var="grouptable">
                                    <c:if test="${ grouptable.groupId == CDQ.followUpId }">
                                        <td>${ grouptable.gname }</td>
                                    </c:if>
                                </c:forEach>
                            </tr>
                            <tr>
                                <td align="right">输出方式</td>
                                <td>
                                    <c:if test="${ fn:substring(CDQ.exportWay,0,1)==1 }">
                                        导出，
                                    </c:if>
                                    <c:if test="${ fn:substring(CDQ.exportWay,0,1)==2 }">
                                        加入随访，
                                    </c:if>
                                    <c:if test="${ fn:substring(CDQ.exportWay,0,1)==3 }">
                                        是否支持长期申请，
                                    </c:if>
                                    <c:if test="${ fn:substring(CDQ.exportWay,2,3)==1 }">
                                        导出，
                                    </c:if>
                                    <c:if test="${ fn:substring(CDQ.exportWay,2,3)==2 }">
                                        加入随访，
                                    </c:if>
                                    <c:if test="${ fn:substring(CDQ.exportWay,2,3)==3 }">
                                        是否支持长期申请，
                                    </c:if>
                                    <c:if test="${ fn:substring(CDQ.exportWay,4,5)==1 }">
                                        导出，
                                    </c:if>
                                    <c:if test="${ fn:substring(CDQ.exportWay,4,5)==2 }">
                                        加入随访，
                                    </c:if>
                                    <c:if test="${ fn:substring(CDQ.exportWay,4,5)==3 }">
                                        是否支持长期申请，
                                    </c:if>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">期望有效期限</td>
                                <fmt:formatDate value="${CDQ.endTime}" var="endTime" pattern="yyyy-MM-dd HH:mm:ss"/>
                                <td>${endTime}</td>
                            </tr>
                            <tr>
                                <td align="right">申请理由</td>
                                <td>${CDQ.applyReason}</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="form-group col-sm-12" style="height: 20px;"></div>
                    <div class="form-group col-sm-12">
                        <label class="col-sm-10 control-label"></label>
                        <div class="col-sm-2">
                            <a href="auditManagement.jsp">
                                <button type="button" class="btn btn-primary btn-block">
                                    返回
                                </button>
                            </a>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <div class="tab-pane fade" id="jmeter">
            <form action="" id="form_personal3" class="form-horizontal">
                <div class="form-group col-sm-12" style="margin-top: 50px;">
                    <div class="col-sm-12">
                        <div class="col-sm-12" style="height: 500px; overflow:scroll; border: 1px solid #B9B9B9;">
                            <jsp:include page="detailsResultsTheItemReight.jsp"></jsp:include>
                        </div>
                    </div>
                    <div class="form-group col-sm-12" style="height: 20px;"></div>
                    <div class="form-group col-sm-12">
                        <label class="col-sm-10 control-label"></label>
                        <div class="col-sm-2">
                            <a href="auditManagement.jsp">
                                <button type="button" class="btn btn-primary btn-block">
                                    返回
                                </button>
                            </a>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>